package com.vken.blog.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.vken.blog.model.Category;

@Transactional
public interface CategoryManager {
	public void insert(Category category, Integer blogId);

	public void update(Category category);

	public void delete(Integer id, Integer targetId);

	@Transactional(readOnly = true)
	public List<Category> list(Integer blogId);

	@Transactional(readOnly = true)
	public Category get(Integer id);
}
